package com.tinyengine.it.model.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 数据逻辑实体信息
 *
 * @TableName i_db_logical_info
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class DbLogicalInfoVo {
    private Integer id;
    private Integer appId;
    /**
     * 服务ID
     */
    @NotNull(message = "服务ID不能为空")
    @Schema(description = "服务ID")
    private Integer serviceId;

    /**
     * 属性代码
     */
    @NotNull(message = "code不能为空")
    @Schema(description = "code")
    private String code;

    /**
     * 属性名称
     */
    @NotNull(message = "属性名称不能为空")
    @Schema(description = "属性名称")
    private String name;

    /**
     * 描述
     */
    @Schema(description = "描述")
    private String description;


    @NotEmpty(message = "字段集合不能为空")
    @Schema(description = "字段集合")
    private List<DbLogicalFieldsInfoVo> logicalFieldsInfoVo;

}